﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BOHVote.Entity;
 

namespace BOH.ControlPanel
{
    public partial class OverView : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                if (Session["User"] != null)
                {
                    BHUser bu = (BHUser)Session["User"];
                    lblMail.Text = bu.Mail;
                    lblPhone.Text = bu.Phone;
                    labUserName.Text = bu.UserName;

                    switch (bu.UserType)
                    {
                        case "Z":
                            labUserType.Text = "卫生中心";
                            break;
                        case "G":
                            labUserType.Text = "主 管 局";
                            break;
                        case "U":
                            labUserType.Text = "卫生单位";
                            break;
                        case "P":
                            labUserType.Text = "个&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人";
                            break;
                        case "A":
                            labUserType.Text = "系统管理员";
                            break;
                        default:
                            break;
                    }
                }
            }
        }
    }
}
